<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false" %>
<%--
  Created by IntelliJ IDEA.
  User: gz
  Date: 2025/03/22
  Time: 23:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h1>获取超链接参数值</h1>
<a href="vote/vote01?name=gz">获取超链接参数值</a> <br>
<h1>获取消息头</h1>
<a href="vote/vote02">获取超链接参数值</a> <br>

<form action="vote/vote03" method="post">
    主人号:<input type="text" name="id"> <br>
    主人名:<input type="text" name="name"> <br>
    宠物号:<input type="text" name="pet.id"> <br>
    宠物名:<input type="text" name="pet.name"> <br>
    <input type="submit" value="提交">
</form>

<%--演示servlet api的使用--%>
<form action="vote/vote04" method="post">
    用户名:<input type="text" name="username"> <br>
    密码:<input type="password" name="pwd"> <br>
    <input type="submit" value="提交">
</form>

<%--演示将提交的数据->springmvc封装到java对象->springmvc会自动将数据放入到request域--%>
<h1>演示将提交的数据->springmvc封装到java对象->springmvc会自动将数据放入到request域</h1>
<form action="vote/vote05" method="post">
    主人号:<input type="text" name="id"> <br>
    主人名:<input type="text" name="name"> <br>
    宠物号:<input type="text" name="pet.id"> <br>
    宠物名:<input type="text" name="pet.name"> <br>
    <input type="submit" value="提交">
</form>
</body>
</html>
